a11y: Stop using gtk_widget_get_parent_surface
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Apr 2019 00:54:05 +0000 (20:54 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 25 Apr 2019 00:54:05 +0000 (20:54 -0400)
We can just use the surface of the parent.

gtk/a11y/gtkwidgetaccessible.c

index d2c2471be9ffc33c151a1731e173cbf8ad147da6..c79b23f574ac72c073c4c4d9b98665ea3de8cb30 100644 (file)
@@ -557,7 +557,7 @@ gtk_widget_accessible_get_extents (AtkComponent   *component,
     {
       *x = allocation.x;
       *y = allocation.y;
-      surface = gtk_widget_get_parent_surface (widget);
+      surface = gtk_widget_get_surface (gtk_widget_get_parent (widget));
     }
   else
     {